//
//  dcasubsystem.cpp
//  DCA
//
//  Created by James Critchley on 8/12/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#include <iostream>
#include "dcasubsystem.h"

DCASubSystem::DCASubSystem()
{
}

DCASubSystem::~DCASubSystem()
{
}

void DCASubSystem::assembly_sweep()
{
    child1->assembly_sweep();
    child2->assembly_sweep();
    assemble();
}

void DCASubSystem::assemble()  // the local assembly operation
{
    std::cout << "Performing assemble operation for " << name << std::endl; 
}

void DCASubSystem::solve_sweep()
{
    solve();
    child1->solve_sweep();
    child2->solve_sweep();    
}

void DCASubSystem::solve()     // the local solve operation
{
    std::cout << "Performing solve operation for " << name << std::endl; 
}
